﻿ window.requestAnimFrame = (function(){
  	return  window.requestAnimationFrame       ||
		  	window.webkitRequestAnimationFrame ||
		  	window.mozRequestAnimationFrame    ||
		  	window.oRequestAnimationFrame      ||
		  	window.msRequestAnimationFrame     ||
		  	function( callback ){
				window.setTimeout(callback, 1000 / 60);
		  	};
})();

var image_folder = imgFolder + "/";
var all_parts = new Array("hours", "minutes", "seconds", "top_center");
var hours_p = new Array;
hours_p["url"] = "hours." + extension + "";
hours_p["update_mode"] = "hours_base_12";
hours_p["width"] = 3;
hours_p["height"] = 25;
hours_p["xrotation"] = 1.5;
hours_p["yrotation"] = 20;
hours_p["xcenteroffset"] = 0;
hours_p["ycenteroffset"] = 0;
var minutes_p = new Array;
minutes_p["url"] = "minutes." + extension + "";
minutes_p["update_mode"] = "minutes_base_60";
minutes_p["width"] = 3;
minutes_p["height"] = 32;
minutes_p["xrotation"] = 1.5;
minutes_p["yrotation"] = 27;
minutes_p["xcenteroffset"] = 0;
minutes_p["ycenteroffset"] = 0;
var seconds_p = new Array;
seconds_p["url"] = "seconds." + extension + "";
seconds_p["update_mode"] = "seconds_base_60";
seconds_p["width"] = 2;
seconds_p["height"] = 39;
seconds_p["xrotation"] = 1;
seconds_p["yrotation"] = 31;
seconds_p["xcenteroffset"] = 0;
seconds_p["ycenteroffset"] = 0;
seconds_p["watch_x_center"] = 0;
seconds_p["watch_y_center"] = 0;
var top_center_p = new Array;
top_center_p["url"] = "center.png";
top_center_p["width"] = 5;
top_center_p["height"] = 5;
top_center_p["xcenteroffset"] = -2.5;
top_center_p["ycenteroffset"] = -2.5;
var cyclop_mask_p = new Array;
var global_watch_p = new Array;
global_watch_p["xcenter"] = 33.5;
global_watch_p["ycenter"] = 32;
global_watch_p["rotation_angle"] = 0;
global_watch_p["width"] = clockWidth;
global_watch_p["height"] = clockHeight;
global_watch_p["xscale"] = .86;
global_watch_p["yscale"] = .86;